<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  
</head>
<body>
  <div id="app">
    <div :class="cls1">div1</div>
    <div :class="cls2">div2</div>
    <div :class="[...cls2,'box4']"></div>
    <div :class="{active:1==1}"></div>
    <div :class="{active:isActive}"></div>
    <div :class="['box3','box2',cls1,{active:true}]"></div>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el:'#app',
      data:{
        cls1:"box",
        cls2:['box','box2','box3'],
        isActive: false
      }
    })
  </script>
</body>
</html>
